package com.bjdd.jdy.ui.hotMap;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.entity.HotMapBean;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/4/19.
 */

public class HotMapModel implements HotMapContract.Model {
    @Override
    public Observable<BaseResult<List<HotMapBean>>> getHotMap(String token, String cityName, int day) {
        return Api.getInstance().service
                .getHotMap(token,cityName,day)
                .compose(RxSchedulers.io_main());
    }
}
